import java.util.Scanner;

public class Test3 {
    public static void main(String[] args) {
            Scanner sc = new Scanner(System.in);
            while (sc.hasNextInt()) {
                int x=sc.nextInt();
                for(int i=0;i<x;i++){
                    for(int j=0;j<x;j++){
                        if((i==j)||(i+j==x-1)){
                            System.out.print("*");
                        }else{
                            System.out.print(" ");
                        }
                    }
                    System.out.println();
                }
            }
    }
}
